package cn.edu.nuc.fourth.model;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

public class Teacher {
	private Integer teacherid;

	private Integer userid;
	@NotEmpty(message = "不能为空")
	private String tdate;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String tPersons;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String tWork;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String workType;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String majorT;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String foreignT;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String metallyT;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String manT;
	@NotEmpty(message = "不能为空")
	@Pattern(regexp = "[0-9]{0,4}", message = "必须为数字")
	private String womanT;

	private Integer state;

	private String checkDate;

	private Integer xCheckstate;

	private Integer cCheckstate;

	private String checkComment;

	private String checkPer;

	public Integer getTeacherid() {
		return teacherid;
	}

	public void setTeacherid(Integer teacherid) {
		this.teacherid = teacherid;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getTdate() {
		return tdate;
	}

	public void setTdate(String tdate) {
		this.tdate = tdate == null ? null : tdate.trim();
	}

	public String gettPersons() {
		return tPersons;
	}

	public void settPersons(String tPersons) {
		this.tPersons = tPersons == null ? null : tPersons.trim();
	}

	public String gettWork() {
		return tWork;
	}

	public void settWork(String tWork) {
		this.tWork = tWork == null ? null : tWork.trim();
	}

	public String getWorkType() {
		return workType;
	}

	public void setWorkType(String workType) {
		this.workType = workType == null ? null : workType.trim();
	}

	public String getMajorT() {
		return majorT;
	}

	public void setMajorT(String majorT) {
		this.majorT = majorT == null ? null : majorT.trim();
	}

	public String getForeignT() {
		return foreignT;
	}

	public void setForeignT(String foreignT) {
		this.foreignT = foreignT == null ? null : foreignT.trim();
	}

	public String getMetallyT() {
		return metallyT;
	}

	public void setMetallyT(String metallyT) {
		this.metallyT = metallyT == null ? null : metallyT.trim();
	}

	public String getManT() {
		return manT;
	}

	public void setManT(String manT) {
		this.manT = manT == null ? null : manT.trim();
	}

	public String getWomanT() {
		return womanT;
	}

	public void setWomanT(String womanT) {
		this.womanT = womanT == null ? null : womanT.trim();
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(String checkDate) {
		this.checkDate = checkDate == null ? null : checkDate.trim();
	}

	public Integer getxCheckstate() {
		return xCheckstate;
	}

	public void setxCheckstate(Integer xCheckstate) {
		this.xCheckstate = xCheckstate;
	}

	public Integer getcCheckstate() {
		return cCheckstate;
	}

	public void setcCheckstate(Integer cCheckstate) {
		this.cCheckstate = cCheckstate;
	}

	public String getCheckComment() {
		return checkComment;
	}

	public void setCheckComment(String checkComment) {
		this.checkComment = checkComment == null ? null : checkComment.trim();
	}

	public String getCheckPer() {
		return checkPer;
	}

	public void setCheckPer(String checkPer) {
		this.checkPer = checkPer == null ? null : checkPer.trim();
	}
}